#include<linux/module.h>
#include<linux/sched.h>
#include<linux/pid.h>
MODULE_LICENSE("GPL");
static int __init find_pid_ns_init(void)
{
	int result;
	printk("into find_pid_ns_init.\n");
	struct pid *kpid=find_get_pid(current->pid);
	struct pid *fpid=find_pid_ns(kpid->numbers[kpid->level].nr,kpid->numbers[kpid->level].ns);

	printk("the find_pid_ns result's count is:%d\n",fpid->count);
	printk("the find_pid_ns result's level is:%d\n",fpid->level);

	printk("the find_pid_ns result's pid is:%d\n",fpid->numbers[fpid->level].nr);
	printk("the pid of current thread is:%d\n",current->pid);
	printk("out find_pid_ns_init.\n");
}
static void __exit find_pid_ns_exit(void)
{
	printk("Goodbye find_pid_ns.\n");
}
module_init(find_pid_ns_init);
module_exit(find_pid_ns_exit);
